<td width="753" valign="top"><table width="743" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="<?php echo SITE_URL?>img/group/photoview/group_photoview_r1_c4.jpg" width="743" height="14" /></td>
      </tr>
    </table>
      <table width="743" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="157" valign="top" background="img/group/photoview/group_photoview_r3_c4.jpg"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="15" colspan="2"></td>
            </tr>
            <tr>
              <td class="tit" height="35">相册名</td>
              <td class="tit"><a href="<?php echo SITE_URL?>GalleryPhotos/create?type=tong&id=<?php echo $tong->getId();?>"><img src="<?php echo SITE_URL?>img/group/photoview/photolist_r1_c8.jpg" width="82" height="31" /></a></td>
            </tr>
          </table>
            <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td bgcolor="#b3afa6" height="1"></td>
              </tr>
            </table>
            <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td width="19%" height="50" class="tit">照片列表</td>
                <td width="81%"> <span class="word">请选择相册
                  </span>                  <select name="gallerys" class="img" onchange="MM_jumpMenu('parent',this,0)">
                    <option>请选择相册</option>
                    <?php foreach($gallerys as $i=>$g){?>
                    <option value="<?php echo '/tong/gallery/?tid='.$tong->getId().'&gid='.$g->getId();?>"><?php echo $g->getName();?></option>
                    <?php }?>
                  </select>                </td>
              </tr>
            </table>
            <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
              <?php
			foreach ($gallery->getResults() as $i => $g){	
                if(($i%2)==0){
				?>
		    </tr></table>
                          <table width="95%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table>
                  <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
				<?php
				}
				?>
                <td width="21%" height="41" valign="top"><table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="83%"><a href="<?php echo SITE_URL?>tong/photo/tid/<?php echo $tong->getId() ?>/pid/<? echo $g->getId();?>"><img src="<?php echo SITE_URL?>uploads/<? echo $g->getSrc();?>" width="110" height="110" class="img" /></a></td>
                    <td width="17%"><img src="<?php echo SITE_URL?>img/group/photoview/photolist_r3_c2.jpg" width="7" height="112" /></td>
                  </tr>
                </table>
                  <table width="95%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><img src="<?php echo SITE_URL?>img/group/photoview/photolist_r5_c1.jpg" width="121" height="6" /></td>
                    </tr>
                  </table></td>
                <td width="25%"><span class="tit"><? echo $g->getName();?></span><br><br>
                  <span class="yhbig">由<? echo $g->getUcMembers()->getUsername();?>发布</span><br>
                  <br>
                  <span class="word"><? echo $g->getCreatedAt();?></span><br>
                <?php if($g->getUcMembers()->getUid() == $user_id){?><img src="<?php echo SITE_URL?>img/group/photoview/photolist_r4_c4.jpg" onclick="javascript:window.location='<?php echo SITE_URL?>Gallery/Edit/id/<? echo $g->getId();?>'"/>&nbsp;<img src="<?php echo SITE_URL?>img/group/photoview/photolist_r4_c6.jpg" width="47" height="31"  onclick="javascript:window.location='#<?php echo SITE_URL?>Gallery/Delete/id/<? echo $g->getId();?>'"/><?php }?></td>
                <? } ?>
                </tr>
            </table>
            <table width="95%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table>
            <table width="95%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="center" class="word">共<span class="yh"><?php echo $gallery->getNbResults();?></span>张照片<span class="yh">
                   <?php 
                    $pageurl = '/tong/gallery/?tid='.$tong->getId().'&gid='.$gid.'&page=';
                    $prestr = '上页';
                    $nextstr = '下页';
                  	echo pager($gallery,$pageurl,$prestr,$nextstr);
				?></span></td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="743" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>img/group/photoview/group_photoview_r13_c4.jpg" width="743" height="10" /></td>
        </tr>
      </table>
      <table width="753" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="753" height="5"></td>
        </tr> 
      </table></td>